const Cookie = require('./Cookie')
const getHeader = (timeMillis) => {
  return {
    authority: 'dc-ios.cbg.163.com',
    method: 'GET',
    path: `/cgi/ad/ad_config?app_name=app_functions&ad_key=put_on_sale_info%2Cseller_diy_desc%2Cconfig_equip_can_quick_buy&device_type=h5&product=my&_=${timeMillis}`,
    scheme: 'https',
    Accept: 'application/json, text/javascript, */*; q=0.01',
    'Accept-Encoding': 'gzip, deflate, br, zstd',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    Cookie: Cookie(),
    Origin: 'https://my.cbg.163.com',
    Priority: 'u=1, i',
    Referer: 'https://my.cbg.163.com/',
    'Sec-Ch-Ua': '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"',
    'Sec-Ch-Ua-Mobile': '?0',
    'Sec-Ch-Ua-Platform': 'macOS',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-site',
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'
  }
}

module.exports = getHeader
